package homeWorkDay03;

import io.Person;

import java.io.*;

/**
 * 将当前目录下的所有obj文件获取到，并进行
 * 反序列化后输出每个用户的信息(直接输出反序
 * 列化后的User对象即可)
 * @author Xiloer
 *
 */
public class Text2 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis = new FileInputStream("韩昌润.obj");
        ObjectInputStream obj = new ObjectInputStream(fis);
        Person u =(Person) obj.readObject();
        System.out.println(u);


    }
}
